package com.hmall.api.cart;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 购物车服务Feign接口
 *
 * @Author mr.Candy
 * @Date 2025/6/1814:28
 */
@FeignClient( name = "cart-service", path = "/carts")
public interface CartClient {
    /**
     *  批量删除购物车中商品
     *
     * @param ids 商品ID列表
     */
    @DeleteMapping
    public void deleteCartItemByIds(@RequestParam("ids") List<Long> ids);
}
